package homework_03;

public class home_13 {
    public static void main(String[] args) {
        int i,sum=0;
        for (i=1;i<=100;i++){
            if (i%3==0){
                sum+=i;
            }
        }
        System.out.println(sum);
        int j=1,sum_01=0;
        while (j<=100){
            if (j%3==0){
                sum_01+=j;
            }
            j++;
        }
        System.out.println(sum_01);
        int z=1,sum_02=0;
        do {
            if (z%3==0){
                sum_02+=z;
            }
            z++;
        }while (z<=100);
        System.out.println(sum_02);
    }
}
